package Data;

/**
 * A general DB related exception.
 */
public class QueryException extends Exception
{
	private static final long serialVersionUID = -3700806725202560560L;

	public QueryException(Throwable e)
	{
		super(e);
	}
	
	@Override
	public String getMessage()
	{
		if (getCause() == null)
			return super.getMessage();
		
		return getCause().getMessage();
	}
}